package com.zlp.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试
 * @author ：ZouLiPing
 * @date ： 2019/10/15 14:51
 */
@Slf4j
@RestController
@RequestMapping( "demo")
public class DemoController {

    @GetMapping(value = "test")
    public void test(){

        log.debug(">>>>>>message0<<<<<<<<");
        log.info(">>>>>>message1<<<<<<<<");
        log.warn(">>>>>>message2<<<<<<<<");
        log.error(">>>>>>message3<<<<<<<<");
        log.error(">>>>>>message4<<<<<<<<");
        log.error(">>>>>>message5<<<<<<<<");
    }

    @GetMapping(value = "sendTest")
    public String sendTest(){

        log.debug("send :{}","send data kafka ");
        return "send data kafka ";
    }
}
